import { configureStore } from "@reduxjs/toolkit";
import HomeSlice from "./reducer/HomeSlice.js";
import propertylist from "./reducer/propertylist";
import touristlist from "./reducer/touristlist.js";
import serviceRecord from "./reducer/serviceRecord.js";
import chatRecords from "./reducer/chatRecords.js";
import customerServiceList from "./reducer/customerServiceList.js";

export default configureStore({
  reducer: {
    HomeSlice: HomeSlice,
    propertylist: propertylist,
    touristlist: touristlist,
    serviceRecord: serviceRecord,
    chatRecords: chatRecords,
    customerServiceList: customerServiceList,
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      //关闭redux序列化检测
      serializableCheck: false,
    }),
});
